package com.ck567.springbootnettyprotobufjava.message;

import com.google.protobuf.MessageLite;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @description: 消息
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class Message implements Serializable {

    private static final long serialVersionUID = -5415899635613935282L;

    /**
     * 消息类型
     */
    private Short type;

    /**
     * 消息
     */
    private MessageLite msg;

}
